<?php

function member_restaurant_info_page($rid){
    $query = db_select('ep_restaurants', 'r')
            ->condition('rid',$rid,'=')
            ->fields('r')
            ->execute();
    $result=array();
    foreach($query as $restaurant){
	$result[] = array(
                            $restaurant->name,
                            $restaurant->city,
                            $restaurant->website,
                            $restaurant->telephone,
                            $restaurant->open,
                            $restaurant->delivery,
                            $restaurant->wifi,
                            $restaurant->parking,
        );    
    }

    return $restaurant;  
}